package com.recursiveflow.shared.view.preloader {
    import flash.display.Sprite;    import com.gskinner.motion.GTween;                public class Tick extends Sprite 	{
        private var fadeTween : GTween;
        public function Tick(fromX:Number, fromY:Number, toX:Number, toY:Number, tickWidth:int, tickColor:uint) 		{
			this.graphics.lineStyle(tickWidth, tickColor, 1.0, false, "normal", "rounded");
			this.graphics.moveTo(fromX, fromY);
			this.graphics.lineTo(toX, toY);						alpha = 0.1;						setupTween();
        }                private function setupTween() : void        {        	fadeTween = new GTween(this);        	        	fadeTween.autoPlay = false;        }
        public function fade(duration:Number):void 		{			fadeTween.duration = duration;			
        	fadeTween.target["alpha"] = 1;        	fadeTween.proxy["alpha"] = 0.3;
			fadeTween.play();
		}
	}
}